package com.gln.bloger.pojos;

public class Tag extends Entity{

	/**
	 * 
	 */
	private static final long serialVersionUID = -5221656600751147954L;

	private String id;
	
    private String name;
        
    private int count;
    
    private Website website;
    
    public Website getWebsite() {
		return website;
	}

	public void setWebsite(Website website) {
		this.website = website;
	}

	public Tag(){}
    
    public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}
	
	public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    
    /* (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
    	return "tag:" + this.name;
    }

	@Override
	public String getId() {
		return id;
	}

	@Override
	public void setId(String id) {
		this.id = id;
	}

	@Override
	public void setData(Entity other) {
		Tag otherTag = (Tag)other;
		this.count = otherTag.getCount();
		this.id = otherTag.getId();
		this.name = otherTag.getName();
		
	}
}
